package com.ruoyi.auto.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "remoteAutoSellerStoreService", value = ServiceNameConstants.AUTO_SERVICE)
public interface RemoteAutoSellerStoreService {

    /**
     * 根据userId获取自动化店铺
     * @param userId 登录用户id
     * @param type 0：自己店铺；1：关联店铺； null：所有
     * @return
     */
    @GetMapping("/kjerp/erpAutoSellerStoreConfig/selectAutoStore")
    R<Object> selectAutoStore(@RequestParam("userId") Long userId,@RequestParam("type") Integer type);

    @GetMapping("/kjerp/erpAutoSellerStoreConfig/queryAutoStoreUserName")
    R<Object> queryAutoStoreUserName();

    @GetMapping("/kjerp/erpAutoSellerStoreConfig/resetActivityAllStore")
    R<Object> resetActivityAllStore();

    @GetMapping("/kjerp/erpAutoSellerStoreConfig/supplementResetActivityErrorZero")
    R<Object>  supplementResetActivityErrorZero();
}
